package com.qiall.datautil;

import org.apache.commons.collections4.map.PassiveExpiringMap;

public class PassiveExpiringMapUtil {
    private PassiveExpiringMap<String, String> passiveExpiringMap = new PassiveExpiringMap(1000 * 60 );

    public void put(String key, String value) {
        passiveExpiringMap.put(key, value);
    }

    public String get(String key) {
        return passiveExpiringMap.get(key);
    }
    public void remove(String key){
        passiveExpiringMap.remove(key);
    }
}
